package com.xbongbong.saas.model;

import com.xbongbong.pro.domain.entity.ActivityCorpEntity;

import java.util.List;
import java.util.Map;

/**
 * @description: 公司公告记录
 * @Author: hongxiao
 * @date: 2019-03-25 17:33
 * @since v1.0
 */
public interface ActivityCorpModel {
    Integer insert(ActivityCorpEntity entity);

    Integer update(ActivityCorpEntity entity);

    Integer save(ActivityCorpEntity entity);


    Integer deleteByKey(Long key);

    ActivityCorpEntity getByKey(Long key);

    List<ActivityCorpEntity> findEntitys(Map<String ,Object>  param);

    Integer getEntitysCount(Map<String ,Object> param);

    /**
     * 保存
     * @param activityId 公告id
     * @param corpid 公司id
     * @param userId 用户id
     * @param mobile 手机号
     * @param platform 平台
     * @return
     * @throws
     *
     * @author hongxiao
     * @date: 2019-03-25 20:04
     * @since v1.0
     * @version v1.0
     */
    Integer save(Long activityId, String corpid, String userId, String mobile, String platform);
}
